home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
tctutor.arc
/
TCTUTOR2.ARC
/
STRINGIN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-10-26
|
400b
|
18 lines
/* Chapter 9 - Program 5 */
#include "stdio.h"
main()
{
char big[25];
printf("Input a character string, up to 25 characters.\n");
printf("An X in column 1 causes the program to stop.\n");
do {
scanf("%s",big);
printf("The string is -> %s\n",big);
} while (big[0] != 'X');
printf("End of program.\n");
}